#include"TcpClient.hpp"
#include <cstring>
#include <unistd.h>

int main(int argc,char *argv[])
{
    if(argc<3)
    {
         LOG(ERROR, "In error: please In Port and peerip\n");
         exit(-1);
    }
    std::string peerip=argv[1];
    uint16_t port=std::stoi(argv[2]);
    TcpClient client(peerip,port);
    client.service(client.getSock());
    return 0;
}
